﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Training
{
    class Program
    {
        static void Main()
        {
            string text = "Testing is important. We need to test everything.";
            string pattern = @"\b\w*test\w*\b";
            
            Regex regex = new Regex(pattern, RegexOptions.IgnoreCase);
            Match match = regex.Match(text);

            while (match.Success)
            {
                Console.WriteLine(match.Value);
                match = match.NextMatch();
            }

        }
    }
}
